package com.demo.biz.user.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户表
 *
 * @author 曳戈泰尔
 * @since 2023-03-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("user")
@ApiModel(value = "UserEntity对象", description = "用户表")
public class UserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增主键ID;自增主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "第三方openId;第三方小程序的openId")
    private String openId;

    @ApiModelProperty(value = "小程序类型;小程序类型，0-微信小程序，1-抖音小程序")
    private Integer type;

    @ApiModelProperty(value = "创建时间;当前记录创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间;当前记录更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除;是否删除，0-未删除，1-已删除")
    private Integer del;
}
